package com.atguigu.springboot.service;

import com.atguigu.springboot.entity.Department;

/**
 * @author : wenchao.long
 * @date : Created in 2020/11/26 14:16 周四
 * @description :
 */
public interface IDepartmentService {
    /**
     * 通过id查询
     *
     * @param id id
     * @return Department
     */
    Department getById(Integer id);

    /**
     * 通过id删除
     *
     * @param id id
     */
    void deleteById(Integer id);

    /**
     * 插入
     *
     * @param department department
     */
    void insert(Department department);

    /**
     * 修改
     *
     * @param department department
     * @return Department
     */
    Department update(Department department);
}
